#include<stdio.h>
//#include<string.h>
int mycmp(const char* s1,const char* s2){
   //  int idx1=0,idx2=0;
     int sum=0;
 /*    while(s1[idx1]!='\0'||s2[idx2]!='\0'){
     sum+=s1[idx1]-s2[idx2];
	   //printf("%d,%d\n",s1[idx],s2[idx]);
      if(s1[idx1]!=0)
      idx1++;
      if(s2[idx2]!=0)
      idx2++;
      }*/
      while(*s1!='\0'||*s2!='\0'){
         sum+=*s1-*s2;
         if(*s1!='\0')
         s1++;
         if(*s2!='\0')
         s2++;
      }
    
    
      return sum;  
}
int main(int argc,char const *argv[]){
   char s1[] = "abc";
   char s2[] = "Abcd";
   printf("%d\n",mycmp(s1,s2));
   printf("%d\n",'a'-'A'+'\0'-'d');
   return 0;

}
